// import all comps
import epButton from './components/epButton'
import epSelect from './components/epSelect'
import epInput from './components/epInput'

// add all comps into an array
export const components = [
  epInput,
  epSelect,
  epButton
]

// export comps one by one
export {
  epInput,
  epSelect,
  epButton
}

// export all comps as an object
const EEUI = {
  epInput,
  epSelect,
  epButton
}

EEUI.install = function (Vue, options = {}) {
  // install all the comps
  components.forEach(component => {
    if (component.name) Vue.component(component.name, component)
  })
}
export default EEUI
